package com.example.lenovo.zxing_lxy.common;

import android.app.Application;
import android.content.Context;
import android.util.DisplayMetrics;

/**
 * Created by lenovo on 2017/10/25.
 */

public class App extends Application{

    private static App instance;
    public static int widthPixels = 720;// 屏幕宽度
    public static int heightPixels = 1280;// 屏幕高度


    public static Context getAppContext(){
        return instance.getApplicationContext();
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;


    }
}
